﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace gestionClinica
{
    public partial class Form1 : Form
    {
        public Form1()
        {
          

            InitializeComponent();
            
        }

        private void doctorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            loadInPanel(new Doctor());
        }
        private void loadInPanel(object f) 
        {
            Form form = f as Form;
            this.panel.Controls.Clear();
            form.TopLevel = false;
            form.FormBorderStyle = FormBorderStyle.None;
            this.panel.Controls.Add(form);
            form.Show();
        }

        private void pacienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
        }

        private void modificarUnidadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            loadInPanel(new FormPaciente());
        }

        private void ingresarAtencionToolStripMenuItem_Click(object sender, EventArgs e)
        {
     
        }

        private void historialesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            loadInPanel(new formHistoriales());
        }

        

        private void Form1_Load(object sender, EventArgs e)
        {
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
           
        }

        private void ingresarDoctorWPFToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
        }

        

        private void menuStrip1_ItemClicked_1(object sender, ToolStripItemClickedEventArgs e)
        {

        }

        private void ingresarDoctorWPFToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            
        }

        private void modificarUnidadToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            loadInPanel(new FormUnidad());
        }

        private void tratamientoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            loadInPanel(new FormTratamiento());
        }
    }
}
